﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:cjc="clr-namespace:Cjc.ChromiumBrowser;assembly=Cjc.ChromiumBrowser"
	  xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" xmlns:IMeem_Model="clr-namespace:IMeem.Model" xmlns:Microsoft_Windows_Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero" xmlns:IMeem_ViewModels="clr-namespace:IMeem.ViewModels" xmlns:myBoard_Framework_Controls="clr-namespace:myBoard.Framework.Controls;assembly=myBoard.Framework" x:Class="IMeem.Magnet"
    Height="Auto" Width="380" FontFamily="Calibri">
	<UserControl.Resources>
		<IMeem_ViewModels:IMeemViewModel x:Key="IMeemViewModelDataSource" d:IsDataSource="True"/>
		<IMeem_Model:Singletons x:Key="SingletonsDataSource" d:IsDataSource="True"/>
		<DataTemplate x:Key="SearchResultDataTemplate">
			<Grid Width="Auto" Height="Auto">
				<StackPanel Orientation="Horizontal" d:LayoutOverrides="Width, Height">
					<Label Width="Auto" Height="Auto" Content="{Binding Title, Mode=Default}"/>
					<Label Margin="10,0,0,0" Content="{Binding Artist, Mode=Default}"/>
				</StackPanel>
			</Grid>
		</DataTemplate>
		<SolidColorBrush x:Key="ListBorder" Color="#828790"/>
		<Style x:Key="{x:Static GridView.GridViewScrollViewerStyleKey}" TargetType="{x:Type ScrollViewer}">
			<Setter Property="Focusable" Value="false"/>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type ScrollViewer}">
						<Grid SnapsToDevicePixels="true" Background="{TemplateBinding Background}">
							<Grid.ColumnDefinitions>
								<ColumnDefinition Width="*"/>
								<ColumnDefinition Width="Auto"/>
							</Grid.ColumnDefinitions>
							<Grid.RowDefinitions>
								<RowDefinition Height="*"/>
								<RowDefinition Height="Auto"/>
							</Grid.RowDefinitions>
							<DockPanel Margin="{TemplateBinding Padding}">
								<ScrollViewer Focusable="false" HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden" DockPanel.Dock="Top" HorizontalAlignment="Stretch">
									<GridViewHeaderRowPresenter Margin="0,0,0,0" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" AllowsColumnReorder="{Binding TemplatedParent.View.AllowsColumnReorder, RelativeSource={RelativeSource TemplatedParent}}" ColumnHeaderContainerStyle="{DynamicResource GridViewColumnHeaderStyle1}" ColumnHeaderContextMenu="{Binding TemplatedParent.View.ColumnHeaderContextMenu, RelativeSource={RelativeSource TemplatedParent}}" ColumnHeaderTemplate="{Binding TemplatedParent.View.ColumnHeaderTemplate, RelativeSource={RelativeSource TemplatedParent}}" ColumnHeaderTemplateSelector="{Binding TemplatedParent.View.ColumnHeaderTemplateSelector, RelativeSource={RelativeSource TemplatedParent}}" ColumnHeaderToolTip="{Binding TemplatedParent.View.ColumnHeaderToolTip, RelativeSource={RelativeSource TemplatedParent}}" Columns="{Binding TemplatedParent.View.Columns, RelativeSource={RelativeSource TemplatedParent}}"/>
								</ScrollViewer>
								<ScrollContentPresenter x:Name="PART_ScrollContentPresenter" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" KeyboardNavigation.DirectionalNavigation="Local" CanContentScroll="{TemplateBinding CanContentScroll}"/>
							</DockPanel>
							<ScrollBar x:Name="PART_HorizontalScrollBar" Cursor="Arrow" Visibility="{TemplateBinding ComputedHorizontalScrollBarVisibility}" Grid.Row="1" Maximum="{TemplateBinding ScrollableWidth}" Minimum="0.0" Value="{Binding HorizontalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}" Orientation="Horizontal" ViewportSize="{TemplateBinding ViewportWidth}"/>
							<ScrollBar x:Name="PART_VerticalScrollBar" Cursor="Arrow" Visibility="{TemplateBinding ComputedVerticalScrollBarVisibility}" Grid.Column="1" Maximum="{TemplateBinding ScrollableHeight}" Minimum="0.0" Value="{Binding VerticalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}" Orientation="Vertical" ViewportSize="{TemplateBinding ViewportHeight}"/>
							<DockPanel Background="{Binding Background, ElementName=PART_VerticalScrollBar}" Grid.Column="1" Grid.Row="1" LastChildFill="false">
								<Rectangle Fill="White" Width="1" Visibility="{TemplateBinding ComputedVerticalScrollBarVisibility}" DockPanel.Dock="Left"/>
								<Rectangle Fill="White" Height="1" Visibility="{TemplateBinding ComputedHorizontalScrollBarVisibility}" DockPanel.Dock="Top"/>
							</DockPanel>
						</Grid>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
		<Style x:Key="ListViewStyle1" TargetType="{x:Type ListView}">
			<Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.WindowBrushKey}}"/>
			<Setter Property="BorderBrush" Value="{StaticResource ListBorder}"/>
			<Setter Property="BorderThickness" Value="1"/>
			<Setter Property="Foreground" Value="#FF042271"/>
			<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
			<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
			<Setter Property="ScrollViewer.CanContentScroll" Value="true"/>
			<Setter Property="VerticalContentAlignment" Value="Center"/>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type ListView}">
						<Microsoft_Windows_Themes:ListBoxChrome x:Name="Bd" SnapsToDevicePixels="true" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" RenderFocused="{TemplateBinding IsKeyboardFocusWithin}" RenderMouseOver="{TemplateBinding IsMouseOver}">
							<ScrollViewer Style="{DynamicResource {x:Static GridView.GridViewScrollViewerStyleKey}}" Padding="{TemplateBinding Padding}" Background="#FF373737" CanContentScroll="True" HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Disabled">
								<ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
							</ScrollViewer>
						</Microsoft_Windows_Themes:ListBoxChrome>
						<ControlTemplate.Triggers>
							<Trigger Property="IsGrouping" Value="true">
								<Setter Property="ScrollViewer.CanContentScroll" Value="false"/>
							</Trigger>
							<Trigger Property="IsEnabled" Value="false">
								<Setter Property="Background" TargetName="Bd" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/>
							</Trigger>
						</ControlTemplate.Triggers>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
		<LinearGradientBrush x:Key="GridViewColumnHeaderBackground" EndPoint="0,1" StartPoint="0,0">
			<GradientStop Color="#FFFFFFFF" Offset="0"/>
			<GradientStop Color="#FFFFFFFF" Offset="0.4091"/>
			<GradientStop Color="#FFF7F8F9" Offset="1"/>
		</LinearGradientBrush>
		<LinearGradientBrush x:Key="GridViewColumnHeaderBorderBackground" EndPoint="0,1" StartPoint="0,0">
			<GradientStop Color="#FFF2F2F2" Offset="0"/>
			<GradientStop Color="#FFD5D5D5" Offset="1"/>
		</LinearGradientBrush>
		<LinearGradientBrush x:Key="GridViewColumnHeaderHoverBackground" EndPoint="0,1" StartPoint="0,0">
			<GradientStop Color="#FFBDEDFF" Offset="0"/>
			<GradientStop Color="#FFB7E7FB" Offset="1"/>
		</LinearGradientBrush>
		<LinearGradientBrush x:Key="GridViewColumnHeaderPressBackground" EndPoint="0,1" StartPoint="0,0">
			<GradientStop Color="#FF8DD6F7" Offset="0"/>
			<GradientStop Color="#FF8AD1F5" Offset="1"/>
		</LinearGradientBrush>
		<Style x:Key="GridViewColumnHeaderGripper" TargetType="{x:Type Thumb}">
			<Setter Property="Canvas.Right" Value="-9"/>
			<Setter Property="Width" Value="18"/>
			<Setter Property="Height" Value="{Binding ActualHeight, RelativeSource={RelativeSource TemplatedParent}}"/>
			<Setter Property="Padding" Value="0"/>
			<Setter Property="Background" Value="{StaticResource GridViewColumnHeaderBorderBackground}"/>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type Thumb}">
						<Border Background="Transparent" Padding="{TemplateBinding Padding}">
							<Rectangle Fill="{TemplateBinding Background}" HorizontalAlignment="Center" Width="1"/>
						</Border>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
		<Style x:Key="myItemStyle" TargetType="{x:Type ListViewItem}">
      <Setter Property="Background" Value="{Binding Converter={StaticResource AlternateColorConverter}, RelativeSource={RelativeSource Self}}"/>
		</Style>
    <Style x:Key="CustomListViewItemStyle" TargetType="{x:Type ListViewItem}">
      <Style.Triggers>
        <Trigger Property="ItemsControl.AlternationIndex" Value="0">
          <Setter Property="Background" Value="#FF313131"/>
        </Trigger>
        <Trigger Property="ItemsControl.AlternationIndex" Value="1">
          <Setter Property="Background" Value="#FF373737"/>
        </Trigger>
      </Style.Triggers>
    </Style>
		<Style x:Key="GridViewColumnHeaderStyle1" TargetType="{x:Type GridViewColumnHeader}">
			<Setter Property="HorizontalContentAlignment" Value="Left"/>
			<Setter Property="VerticalContentAlignment" Value="Center"/>
			<Setter Property="Background">
				<Setter.Value>
					<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
						<GradientStop Color="#FF868686" Offset="1"/>
						<GradientStop Color="#FFA8A8A8" Offset="0"/>
					</LinearGradientBrush>
				</Setter.Value>
			</Setter>
			<Setter Property="BorderBrush" Value="#FF292929"/>
			<Setter Property="BorderThickness" Value="0"/>
			<Setter Property="Padding" Value="5,0,2,0"/>
			<Setter Property="Foreground" Value="#FF080808"/>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type GridViewColumnHeader}">
						<Grid SnapsToDevicePixels="true">
							<Border x:Name="HeaderBorder" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="0,1,0,1">
								<Grid>
									<Grid.RowDefinitions>
										<RowDefinition MaxHeight="7"/>
										<RowDefinition/>
									</Grid.RowDefinitions>
									<Rectangle x:Name="UpperHighlight" Fill="#FFE3F7FF" Visibility="Collapsed"/>
									<Border Padding="{TemplateBinding Padding}" Grid.RowSpan="2">
										<Grid HorizontalAlignment="Left" Width="Auto" Height="Auto">
											<TextBlock VerticalAlignment="Top" Text="{TemplateBinding Content}" TextWrapping="Wrap" RenderTransformOrigin="0.5,0.5" Foreground="#FFC5C5C5">
												<TextBlock.RenderTransform>
													<TransformGroup>
														<ScaleTransform ScaleX="1" ScaleY="1"/>
														<SkewTransform AngleX="0" AngleY="0"/>
														<RotateTransform Angle="0"/>
														<TranslateTransform X="0" Y="3"/>
													</TransformGroup>
												</TextBlock.RenderTransform>
											</TextBlock>
											<ContentPresenter x:Name="HeaderContent" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="0,0,0,1" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" RecognizesAccessKey="True"/>
										</Grid>
									</Border>
									<Rectangle Fill="#FFC9C9C9" Stroke="{x:Null}" Margin="0,0,0,0" Grid.RowSpan="1" Height="1" VerticalAlignment="Top"/>
								</Grid>
							</Border>
							<Border x:Name="HeaderHoverBorder" Margin="1,1,0,0" BorderThickness="1,0,1,1"/>
							<Border x:Name="HeaderPressBorder" Margin="1,0,0,1" BorderThickness="1,1,1,0"/>
							<Canvas>
								<Thumb x:Name="PART_HeaderGripper" Style="{StaticResource GridViewColumnHeaderGripper}" Height="18" Margin="0,1,0,0">
									<Thumb.Background>
										<LinearGradientBrush EndPoint="0.556,0.5" StartPoint="-0.556,0.5">
											<GradientStop Color="#FF6B6B6B" Offset="1"/>
											<GradientStop Color="#FFB5B5B5" Offset="1"/>
										</LinearGradientBrush>
									</Thumb.Background>
								</Thumb>
							</Canvas>
						</Grid>
						<ControlTemplate.Triggers>
							<Trigger Property="IsMouseOver" Value="true">
								<Setter Property="Background" TargetName="HeaderBorder" Value="{StaticResource GridViewColumnHeaderHoverBackground}"/>
								<Setter Property="BorderBrush" TargetName="HeaderHoverBorder" Value="#FF88CBEB"/>
								<Setter Property="Visibility" TargetName="UpperHighlight" Value="Visible"/>
								<Setter Property="Background" TargetName="PART_HeaderGripper" Value="Transparent"/>
							</Trigger>
							<Trigger Property="IsPressed" Value="true">
								<Setter Property="Background" TargetName="HeaderBorder" Value="{StaticResource GridViewColumnHeaderPressBackground}"/>
								<Setter Property="BorderBrush" TargetName="HeaderHoverBorder" Value="#FF95DAF9"/>
								<Setter Property="BorderBrush" TargetName="HeaderPressBorder" Value="#FF7A9EB1"/>
								<Setter Property="Visibility" TargetName="UpperHighlight" Value="Visible"/>
								<Setter Property="Fill" TargetName="UpperHighlight" Value="#FFBCE4F9"/>
								<Setter Property="Visibility" TargetName="PART_HeaderGripper" Value="Hidden"/>
								<Setter Property="Margin" TargetName="HeaderContent" Value="1,1,0,0"/>
							</Trigger>
							<Trigger Property="Height" Value="Auto">
								<Setter Property="MinHeight" Value="20"/>
							</Trigger>
							<Trigger Property="IsEnabled" Value="false">
								<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
							</Trigger>
						</ControlTemplate.Triggers>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
			<Setter Property="FontWeight" Value="Bold"/>
			<Style.Triggers>
				<Trigger Property="Role" Value="Floating">
					<Setter Property="Opacity" Value="0.4082"/>
					<Setter Property="Template">
						<Setter.Value>
							<ControlTemplate TargetType="{x:Type GridViewColumnHeader}">
								<Canvas x:Name="PART_FloatingHeaderCanvas">
									<Rectangle Fill="#FF000000" Width="{TemplateBinding ActualWidth}" Height="{TemplateBinding ActualHeight}" Opacity="0.4697"/>
								</Canvas>
							</ControlTemplate>
						</Setter.Value>
					</Setter>
				</Trigger>
				<Trigger Property="Role" Value="Padding">
					<Setter Property="Template">
						<Setter.Value>
							<ControlTemplate TargetType="{x:Type GridViewColumnHeader}">
								<Border x:Name="HeaderBorder" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="0,1,0,1"/>
								<ControlTemplate.Triggers>
									<Trigger Property="Height" Value="Auto">
										<Setter Property="MinHeight" Value="20"/>
									</Trigger>
								</ControlTemplate.Triggers>
							</ControlTemplate>
						</Setter.Value>
					</Setter>
				</Trigger>
			</Style.Triggers>
		</Style>
		<DrawingBrush x:Key="NextBrush" Viewbox="0,0,19.829,20.298" ViewboxUnits="Absolute">
			<DrawingBrush.Drawing>
				<GeometryDrawing Brush="#FF101010">
					<GeometryDrawing.Geometry>
						<PathGeometry Figures="M0,5.298006 L4.1234932,5.298006 4.1234932,16.174513 15,16.174513 15,20.298006 0,20.298006 z M8.579256,0 L11.671876,0 11.671876,8.837162 19.829256,8.837162 19.829256,12.1875 8.579256,12.1875 z">
							<PathGeometry.Transform>
								<MatrixTransform Matrix="0.99998708687111,0,0,0.999999701559885,0,0"/>
							</PathGeometry.Transform>
						</PathGeometry>
					</GeometryDrawing.Geometry>
				</GeometryDrawing>
			</DrawingBrush.Drawing>
		</DrawingBrush>
		<Storyboard x:Key="ShowPlayer">
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="_browserContainer" Storyboard.TargetProperty="(FrameworkElement.Height)">
				<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="110" KeySpline="0,1,1,1"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Key="HidePlayer">
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="_browserContainer" Storyboard.TargetProperty="(FrameworkElement.Height)">
				<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="0" KeySpline="0,1,1,1"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
		<Style x:Key="ButtonFocusVisual">
			<Setter Property="Control.Template">
				<Setter.Value>
					<ControlTemplate>
						<Rectangle Stroke="Black" StrokeDashArray="1 2" StrokeThickness="1" Margin="2" SnapsToDevicePixels="true"/>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
		<LinearGradientBrush x:Key="ButtonNormalBackground" EndPoint="0,1" StartPoint="0,0">
			<GradientStop Color="#F3F3F3" Offset="0"/>
			<GradientStop Color="#EBEBEB" Offset="0.5"/>
			<GradientStop Color="#DDDDDD" Offset="0.5"/>
			<GradientStop Color="#CDCDCD" Offset="1"/>
		</LinearGradientBrush>
		<SolidColorBrush x:Key="ButtonNormalBorder" Color="#FF707070"/>
		<Style x:Key="NavigationButton" TargetType="{x:Type Button}">
			<Setter Property="FocusVisualStyle" Value="{StaticResource ButtonFocusVisual}"/>
			<Setter Property="Background" Value="{StaticResource ButtonNormalBackground}"/>
			<Setter Property="BorderBrush" Value="{StaticResource ButtonNormalBorder}"/>
			<Setter Property="BorderThickness" Value="1"/>
			<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
			<Setter Property="HorizontalContentAlignment" Value="Center"/>
			<Setter Property="VerticalContentAlignment" Value="Center"/>
			<Setter Property="Padding" Value="1"/>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type Button}">
						<Grid>
							<Ellipse>
								<Ellipse.Effect>
									<DropShadowEffect Direction="275" ShadowDepth="2" BlurRadius="2" Opacity="0.595"/>
								</Ellipse.Effect>
								<Ellipse.Stroke>
									<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
										<GradientStop Color="#FFF4F4F4" Offset="0"/>
										<GradientStop Color="#00F4F4F4" Offset="0.4"/>
									</LinearGradientBrush>
								</Ellipse.Stroke>
								<Ellipse.Fill>
									<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
										<GradientStop Color="#FFD2D2D2" Offset="0"/>
										<GradientStop Color="#FFB1B1B1" Offset="1"/>
									</LinearGradientBrush>
								</Ellipse.Fill>
							</Ellipse>
							<ContentPresenter/>
						</Grid>
						<ControlTemplate.Triggers>
							<Trigger Property="IsKeyboardFocused" Value="true"/>
							<Trigger Property="ToggleButton.IsChecked" Value="true"/>
							<Trigger Property="IsEnabled" Value="false">
								<Setter Property="Foreground" Value="#ADADAD"/>
							</Trigger>
						</ControlTemplate.Triggers>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
		<LinearGradientBrush x:Key="TextBoxBorder" EndPoint="0,20" StartPoint="0,0" MappingMode="Absolute">
			<GradientStop Color="#ABADB3" Offset="0.05"/>
			<GradientStop Color="#E2E3EA" Offset="0.07"/>
			<GradientStop Color="#E3E9EF" Offset="1"/>
		</LinearGradientBrush>
		<Style x:Key="TextBoxStyle1" BasedOn="{x:Null}" TargetType="{x:Type TextBox}">
			<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
			<Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.WindowBrushKey}}"/>
			<Setter Property="BorderBrush" Value="{StaticResource TextBoxBorder}"/>
			<Setter Property="BorderThickness" Value="1"/>
			<Setter Property="Padding" Value="1"/>
			<Setter Property="AllowDrop" Value="true"/>
			<Setter Property="FocusVisualStyle" Value="{x:Null}"/>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type TextBox}">
						<StackPanel Width="Auto" Height="Auto" Background="{x:Null}" Orientation="Horizontal">
								<Border HorizontalAlignment="Left" Width="Auto" Height="Auto" BorderBrush="{x:Null}" BorderThickness="1,0,0,0" d:LayoutOverrides="HorizontalAlignment, VerticalMargin" CornerRadius="5,0,0,5">
									<Border.Background>
										<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
											<GradientStop Color="#FFEAEAEA" Offset="0"/>
											<GradientStop Color="White" Offset="0.5"/>
										</LinearGradientBrush>
									</Border.Background>
								<Grid Margin="3,0,0,0">
									<Path Fill="#FFFFFFFF" Stretch="Fill" Stroke="#FF8C8C8C" StrokeThickness="2" HorizontalAlignment="Left" Margin="0,0,0,0" VerticalAlignment="Top" Width="13.335" Height="15.764" Data="M13,7 C13,10.313708 10.313708,13 7,13 C3.6862915,13 1,10.313708 1,7 C1,3.6862915 3.6862915,1 7,1 C10.313708,1 13,3.6862915 13,7 z M11.04,12.475 L15.917,18.999" RenderTransformOrigin="0.5,0.5">
										<Path.RenderTransform>
											<TransformGroup>
												<ScaleTransform ScaleX="0.7" ScaleY="0.7"/>
												<SkewTransform AngleX="0" AngleY="0"/>
												<RotateTransform Angle="0"/>
												<TranslateTransform X="0" Y="0"/>
											</TransformGroup>
										</Path.RenderTransform>
									</Path>
								</Grid>
							</Border>
							<ScrollViewer x:Name="PART_ContentHost" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" d:LayoutOverrides="Width" Margin="-1,0,0,0" MinWidth="100">
								<ScrollViewer.Background>
									<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
										<GradientStop Color="#FFEAEAEA" Offset="0"/>
										<GradientStop Color="White" Offset="0.5"/>
									</LinearGradientBrush>
								</ScrollViewer.Background>
							</ScrollViewer>
							<Border HorizontalAlignment="Left" Width="9" Height="Auto" BorderBrush="{x:Null}" BorderThickness="0,0,0,0" CornerRadius="0,5,5,0" Margin="-1,0,0,0">
								<Border.Background>
									<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
										<GradientStop Color="#FFEAEAEA" Offset="0"/>
										<GradientStop Color="White" Offset="0.5"/>
									</LinearGradientBrush>
								</Border.Background>
							</Border>
							</StackPanel>
						<ControlTemplate.Triggers>
							<Trigger Property="IsEnabled" Value="false">
								<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
							</Trigger>
						</ControlTemplate.Triggers>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
		<Storyboard x:Key="StartLoadingMode">
			<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="_loadingLayer" Storyboard.TargetProperty="(UIElement.Visibility)">
				<DiscreteObjectKeyFrame KeyTime="00:00:00" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="_loadingLayer" Storyboard.TargetProperty="(UIElement.Opacity)">
				<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
				<SplineDoubleKeyFrame KeyTime="00:00:00.4000000" Value="1" KeySpline="0,1,1,1"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="_resultsLbx" Storyboard.TargetProperty="(UIElement.Effect).(BlurEffect.Radius)">
				<SplineDoubleKeyFrame KeyTime="00:00:00.4000000" Value="10" KeySpline="0,1,1,1"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Key="EndLoadingMode">
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="_loadingLayer" Storyboard.TargetProperty="(UIElement.Opacity)">
				<SplineDoubleKeyFrame KeyTime="00:00:00.4000000" Value="0" KeySpline="0,1,1,1"/>
			</DoubleAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="_loadingLayer" Storyboard.TargetProperty="(UIElement.Visibility)">
				<DiscreteObjectKeyFrame KeyTime="00:00:00.4000000" Value="{x:Static Visibility.Hidden}"/>
			</ObjectAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="_resultsLbx" Storyboard.TargetProperty="(UIElement.Effect).(BlurEffect.Radius)">
				<SplineDoubleKeyFrame KeyTime="00:00:00.4000000" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
	</UserControl.Resources>
	<UserControl.DataContext>
		<Binding Mode="OneWay" Source="{StaticResource IMeemViewModelDataSource}"/>
	</UserControl.DataContext>
    <Grid>
            
    	<Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="Auto" Height="Auto">
    		<StackPanel HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="Auto" Height="Auto">
    			<Border Height="37" BorderBrush="#FFEEEEEE" BorderThickness="0,1,0,0" CornerRadius="10,10,0,0">
    				<Border.Background>
    					<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
    						<GradientStop Color="#FF9B9B9B" Offset="0"/>
    						<GradientStop Color="#FF5A5A5A" Offset="1"/>
    					</LinearGradientBrush>
    				</Border.Background>
    				<StackPanel Margin="0,0,0,0" Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Center">
    					<TextBox x:Name="_searchTbx" HorizontalAlignment="Left" VerticalAlignment="Center" Width="Auto" FontStyle="Italic" Foreground="#FF8C8C8C" Text="Search ..." TextWrapping="Wrap" Margin="10,0,0,0" Style="{DynamicResource TextBoxStyle1}"/>
    				</StackPanel>
    			</Border>
          <Border x:Name="_browserContainer" Height="0" BorderBrush="{x:Null}" Background="#FF373737">
            <cjc:WebBrowser x:Name="_browser"
              RenderTransformOrigin="0.5,0.5" TabIndex="2" Focusable="True" EnableAsyncRendering="True"/>
          </Border>
    			<Grid Height="235" ClipToBounds="True">
    				<ListView x:Name="_resultsLbx" ItemsSource="{Binding LatestSearchResults, Mode=Default}" IsSynchronizedWithCurrentItem="True" Style="{DynamicResource ListViewStyle1}" Foreground="#FFCCCCCC" SelectedIndex="-1" Background="#FF373737" ItemContainerStyle="{DynamicResource CustomListViewItemStyle}" AlternationCount="2" BorderBrush="{x:Null}" BorderThickness="0,0,0,0">
    					<ListView.Effect>
    						<BlurEffect Radius="0"/>
    					</ListView.Effect>
    					<ListView.View>
    						<GridView>
    							<GridViewColumn Header="Title" Width="150" DisplayMemberBinding="{Binding Title}"/>
    							<GridViewColumn Header="Artist" Width="150" DisplayMemberBinding="{Binding Artist}"/>
    							<GridViewColumn Header="Duration" Width="106" DisplayMemberBinding="{Binding Duration}"/>
    						</GridView>
    					</ListView.View>
    				</ListView>
    				<Grid x:Name="_loadingLayer" Margin="0" Background="#B3000000" Visibility="Hidden" Opacity="0">
    					<TextBlock HorizontalAlignment="Center" Margin="0,49,0,0" VerticalAlignment="Top" FontSize="13.333" Foreground="White" Text="Searching, please wait ..." TextWrapping="Wrap"/>
    					<myBoard_Framework_Controls:PreLoader x:Name="_preLoader" HorizontalAlignment="Center" VerticalAlignment="Center" d:LayoutOverrides="Width, Height"/>
    				</Grid>
    			</Grid>
    			<Border Height="40" BorderBrush="#FF000000" BorderThickness="0,1,0,0">
    				<Border.Background>
    					<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
    						<GradientStop Color="#FFFFFFFF" Offset="0.015"/>
    						<GradientStop Color="#FF4E4E4E" Offset="1"/>
    						<GradientStop Color="#FF5F5F5F" Offset="0.015"/>
    					</LinearGradientBrush>
    				</Border.Background>
    				<StackPanel Orientation="Horizontal">
    					<Button x:Name="_previousResultPage" Style="{DynamicResource NavigationButton}" Height="25" Width="25" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="10,0,0,0" Cursor="Hand" ToolTip="Previous results" Command="{Binding PreviousResultsCmd, Mode=Default}">
    						<Grid Width="25" Height="25" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="0,1,0,0" RenderTransformOrigin="0.5,0.5">
    							<Grid.RenderTransform>
    								<TransformGroup>
    									<ScaleTransform ScaleX="-1" ScaleY="1"/>
    									<SkewTransform AngleX="0" AngleY="0"/>
    									<RotateTransform Angle="0"/>
    									<TranslateTransform X="0" Y="0"/>
    								</TransformGroup>
    							</Grid.RenderTransform>
    							<Path Fill="#FFFFFFFF" Stretch="Fill" Stroke="{x:Null}" Margin="8.085,2.788,2.086,6.916" RenderTransformOrigin="0.378229015323187,0.630505576110626" Data="M0,5.298006 L4.1234932,5.298006 4.1234932,16.174513 15,16.174513 15,20.298006 0,20.298006 z M8.579256,0 L11.671876,0 11.671876,8.837162 19.829256,8.837162 19.829256,12.1875 8.579256,12.1875 z">
    								<Path.RenderTransform>
    									<TransformGroup>
    										<ScaleTransform ScaleX="0.8" ScaleY="0.8"/>
    										<SkewTransform AngleX="0" AngleY="0"/>
    										<RotateTransform Angle="-135"/>
    										<TranslateTransform X="0" Y="0"/>
    									</TransformGroup>
    								</Path.RenderTransform>
    							</Path>
    							<Path Fill="#FF101010" Stretch="Fill" Stroke="{x:Null}" Margin="8.085,2.036,2.086,7.666" RenderTransformOrigin="0.378229015323187,0.630505576110626" Data="M0,5.298006 L4.1234932,5.298006 4.1234932,16.174513 15,16.174513 15,20.298006 0,20.298006 z M8.579256,0 L11.671876,0 11.671876,8.837162 19.829256,8.837162 19.829256,12.1875 8.579256,12.1875 z">
    								<Path.RenderTransform>
    									<TransformGroup>
    										<ScaleTransform ScaleX="0.8" ScaleY="0.8"/>
    										<SkewTransform AngleX="0" AngleY="0"/>
    										<RotateTransform Angle="-135"/>
    										<TranslateTransform X="0" Y="0"/>
    									</TransformGroup>
    								</Path.RenderTransform>
    							</Path>
    						</Grid>
    					</Button>
    					<Button x:Name="_nextResultsPage" HorizontalAlignment="Center" Margin="10,0,0,0" Style="{DynamicResource NavigationButton}" VerticalAlignment="Center" Width="25" Height="25" Cursor="Hand" ToolTip="Next results" Command="{Binding NextResultsCmd, Mode=Default}">
    						<Grid HorizontalAlignment="Left" Margin="0,1,0,0" VerticalAlignment="Top" Width="25" Height="25">
    							<Path Fill="#FFFFFFFF" Stretch="Fill" Stroke="{x:Null}" Margin="8.085,2.788,2.086,6.916" RenderTransformOrigin="0.378229015323187,0.630505576110626" Data="M0,5.298006 L4.1234932,5.298006 4.1234932,16.174513 15,16.174513 15,20.298006 0,20.298006 z M8.579256,0 L11.671876,0 11.671876,8.837162 19.829256,8.837162 19.829256,12.1875 8.579256,12.1875 z">
    								<Path.RenderTransform>
    									<TransformGroup>
    										<ScaleTransform ScaleX="0.8" ScaleY="0.8"/>
    										<SkewTransform AngleX="0" AngleY="0"/>
    										<RotateTransform Angle="-135"/>
    										<TranslateTransform X="0" Y="0"/>
    									</TransformGroup>
    								</Path.RenderTransform>
    							</Path>
    							<Path Fill="#FF101010" Stretch="Fill" Stroke="{x:Null}" Margin="8.085,2.036,2.086,7.666" RenderTransformOrigin="0.378229015323187,0.630505576110626" Data="M0,5.298006 L4.1234932,5.298006 4.1234932,16.174513 15,16.174513 15,20.298006 0,20.298006 z M8.579256,0 L11.671876,0 11.671876,8.837162 19.829256,8.837162 19.829256,12.1875 8.579256,12.1875 z">
    								<Path.RenderTransform>
    									<TransformGroup>
    										<ScaleTransform ScaleX="0.8" ScaleY="0.8"/>
    										<SkewTransform AngleX="0" AngleY="0"/>
    										<RotateTransform Angle="-135"/>
    										<TranslateTransform X="0" Y="0"/>
    									</TransformGroup>
    								</Path.RenderTransform>
    							</Path>
    						</Grid>
    					</Button>
    				</StackPanel>
    			</Border>
    		</StackPanel>
    	</Grid>
            
    </Grid>
</UserControl>
